import 'package:flutter_screenutil/screenutil.dart';
import 'package:flutter/material.dart';
import 'package:heyangkuaidai/DemonStrateModule/Components/TwoLabelItem.dart';
import 'package:heyangkuaidai/DemonStrateModule/Components/SmsCodeItem.dart';
import 'package:heyangkuaidai/DemonStrateModule/Components/LeftLabelInputItem.dart';
import 'package:heyangkuaidai/DemonStrateModule/Components/NavigationBar.dart';
import 'package:heyangkuaidai/DemonStrateModule/RepaySuccessPage.dart';
class LoanRepayConfirmVSecretPage extends StatefulWidget {
  @override
  _LoanRepayConfirmVSecretPageState createState() => _LoanRepayConfirmVSecretPageState();
}

class _LoanRepayConfirmVSecretPageState extends State<LoanRepayConfirmVSecretPage> {
  @override
  Widget build(BuildContext context) {
    ScreenUtil.init(context, width: 375, height: 667, allowFontScaling: true);
    return Scaffold(
      resizeToAvoidBottomInset: false,
      body: Column(
        children: [
          SizedBox(height: MediaQuery.of(context).padding.top,),
          NavigationBar(false, title: "借款归还",),
          Container(
              width: ScreenUtil.screenWidth,
              height: ScreenUtil.screenHeight-ScreenUtil().setWidth(629)-MediaQuery.of(context).padding.top,
              child: ListView(
                padding: EdgeInsets.only(top: 0),
                children: [
                  TwoLabelItem(title:"还款金额",hitText: "200,425.23元",),
                  LeftLabelInputItem(title: "V盾密码",hitText: "请输入V盾密码",),
                ],
              )
          ) ,
          InkWell(
            onTap: (){
               Navigator.push(
                  context,
                  new MaterialPageRoute(
                    builder: (context) => new RepaySuccessPage(),
                  ),
                );
            },
            child: Container(
                decoration: BoxDecoration(
                  borderRadius: BorderRadius.circular(4),
                  color:Color(0xff41A5EE),
                ),
                width: ScreenUtil().setWidth(347),
                height: ScreenUtil().setWidth(44),
                child:Center(
                  child: Text("确定",style: TextStyle(fontSize: ScreenUtil().setSp(17),color: Colors.white),textAlign: TextAlign.center,),
                )
            ) ,
          )
        ],
      ),
    );
  }
}
